home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCSSStyleSheet.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  4.5 KB  |  135 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCSSStyleSheet.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCSSStyleSheet_h__
  6. #define __gen_nsIDOMCSSStyleSheet_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMStyleSheet_h__
  10. #include "nsIDOMStyleSheet.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMCSSStyleSheet */
  19. #define NS_IDOMCSSSTYLESHEET_IID_STR "a6cf90c2-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMCSSSTYLESHEET_IID \
  22.   {0xa6cf90c2, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMCSSStyleSheet : public nsIDOMStyleSheet {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLESHEET_IID)
  29.  
  30.   /**
  31.  * The nsIDOMCSSStyleSheet interface is a datatype for a CSS style
  32.  * sheet in the Document Object Model.
  33.  *
  34.  * For more information on this interface please see
  35.  * http://www.w3.org/TR/DOM-Level-2-Style
  36.  *
  37.  * @status FROZEN
  38.  */
  39.   /* readonly attribute nsIDOMCSSRule ownerRule; */
  40.   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) = 0;
  41.  
  42.   /* readonly attribute nsIDOMCSSRuleList cssRules; */
  43.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
  44.  
  45.   /* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
  46.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) = 0;
  47.  
  48.   /* void deleteRule (in unsigned long index)  raises (DOMException); */
  49.   NS_IMETHOD DeleteRule(PRUint32 index) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSIDOMCSSSTYLESHEET \
  55.   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule); \
  56.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
  57.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval); \
  58.   NS_IMETHOD DeleteRule(PRUint32 index); 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  61. #define NS_FORWARD_NSIDOMCSSSTYLESHEET(_to) \
  62.   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return _to GetOwnerRule(aOwnerRule); } \
  63.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return _to GetCssRules(aCssRules); } \
  64.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return _to InsertRule(rule, index, _retval); } \
  65.   NS_IMETHOD DeleteRule(PRUint32 index) { return _to DeleteRule(index); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSIDOMCSSSTYLESHEET(_to) \
  69.   NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerRule(aOwnerRule); } \
  70.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
  71.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
  72.   NS_IMETHOD DeleteRule(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); } 
  73.  
  74. #if 0
  75. /* Use the code below as a template for the implementation class for this interface. */
  76.  
  77. /* Header file */
  78. class nsDOMCSSStyleSheet : public nsIDOMCSSStyleSheet
  79. {
  80. public:
  81.   NS_DECL_ISUPPORTS
  82.   NS_DECL_NSIDOMCSSSTYLESHEET
  83.  
  84.   nsDOMCSSStyleSheet();
  85.  
  86. private:
  87.   ~nsDOMCSSStyleSheet();
  88.  
  89. protected:
  90.   /* additional members */
  91. };
  92.  
  93. /* Implementation file */
  94. NS_IMPL_ISUPPORTS1(nsDOMCSSStyleSheet, nsIDOMCSSStyleSheet)
  95.  
  96. nsDOMCSSStyleSheet::nsDOMCSSStyleSheet()
  97. {
  98.   /* member initializers and constructor code */
  99. }
  100.  
  101. nsDOMCSSStyleSheet::~nsDOMCSSStyleSheet()
  102. {
  103.   /* destructor code */
  104. }
  105.  
  106. /* readonly attribute nsIDOMCSSRule ownerRule; */
  107. NS_IMETHODIMP nsDOMCSSStyleSheet::GetOwnerRule(nsIDOMCSSRule * *aOwnerRule)
  108. {
  109.     return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111.  
  112. /* readonly attribute nsIDOMCSSRuleList cssRules; */
  113. NS_IMETHODIMP nsDOMCSSStyleSheet::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
  119. NS_IMETHODIMP nsDOMCSSStyleSheet::InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123.  
  124. /* void deleteRule (in unsigned long index)  raises (DOMException); */
  125. NS_IMETHODIMP nsDOMCSSStyleSheet::DeleteRule(PRUint32 index)
  126. {
  127.     return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129.  
  130. /* End of implementation class template. */
  131. #endif
  132.  
  133.  
  134. #endif /* __gen_nsIDOMCSSStyleSheet_h__ */
  135.